package yang.itcode.mapper;

import cn.hutool.json.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import yang.itcode.model.pojo.Category;

import java.util.List;

@Mapper
public interface CategoryMapper {
    int insert(Category category);

    int update(Category category);

    int deleteById(Integer id);

    Category selectById(Integer id);

    List<Category> selectAll();

    List<Category> selectByCondition(JSONObject condition);

    List<JSONObject> selectCategoryView(JSONObject condition);
}
